import net.egork.io.IOUtils;
import net.egork.utils.Solver;
import net.egork.utils.io.InputReader;

import java.io.PrintWriter;

public class TaskB implements Solver {
    public void solve(int testNumber, InputReader in, PrintWriter out) {

        int n = in.readInt();
        int sum = 0, minOdd = Integer.MAX_VALUE;

        int a;
        for (int i = 0; i < n; ++i) {
            a = in.readInt();
            sum += a;
            if (a % 2 == 1)
                minOdd = Math.min(minOdd, a);
        }

        int ans;
        if (sum % 2 == 1)
            ans = sum;
        else
            ans = sum - minOdd;

        out.println(Math.max(0, ans));
    }
}
